Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxKeys to S3 list API #3618

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

phuongnq
Copy link
Member

@phuongnq phuongnq marked this pull request as draft October 22, 2024 03:10

page.contents().stream()
// Do not fetch content key if it exceeded the maxKeys but continue to fetch prefixes
if (items.size() >= maxKeys + commonPrefixesCount) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not have a counter for the contents (which are the ones being limited) instead of prefixes?
So condition would be like this:

contentsCount >= maxKeys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants